package com.example.demo.controller;

import com.example.demo.anno.MyLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class Test2Controller {
    //@MyLog("测试")
    @GetMapping("/test2")
    public String test2(@RequestParam("name") String name)
    {
        log.info("==========Test2Controller");
        return name;
    }
}
